﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="GuestBook.aspx.cs" Inherits="GuestBook" Title="Untitled Page" StylesheetTheme="SkinFile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 580px; height:600px;">
        <tr>
            <td colspan="3" style="width: 517px; height:59px;" valign="bottom">
            <img src="images/guest.jpg" />
            </td>
        </tr>
        <tr>
            <td colspan="3" style="width: 517px; height:450px;" valign="top">
                <table align="center" bgcolor="#cccccc" border="0" cellpadding="8" cellspacing="1"
                    style="font-size: 12px; line-height: 2" width="100%">
                    <tr>
                        <td align="right" bgcolor="#ffffff" class="pad" style="width: 113px; height: 22px">
                            姓名：</td>
                        <td bgcolor="#ffffff" class="pad" style="height: 22px">
                           &nbsp;<asp:TextBox ID="tblName" runat="server" Width="329px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="right" bgcolor="#ffffff" class="pad" style="width: 113px; height: 22px">
                            标题：</td>
                        <td bgcolor="#ffffff" class="pad" style="height: 22px">
                            &nbsp;<asp:TextBox ID="tblTitle" runat="server" Width="331px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tblTitle"
                                ErrorMessage="*"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td align="right" bgcolor="#ffffff" class="pad" style="width: 113px; height: 22px">
                            内容：</td>
                        <td bgcolor="#ffffff" class="pad" style="height: 22px">
                            &nbsp;<asp:TextBox ID="tblContent" runat="server" Height="97px" TextMode="MultiLine"
                                Width="335px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tblContent"
                                ErrorMessage="*"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td align="right" bgcolor="#ffffff" class="pad" style="width: 113px; height: 22px">
                        </td>
                        <td bgcolor="#ffffff" class="pad" style="height: 22px">
                            <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="留言" />
                            <asp:Button ID="Button2" runat="server" CausesValidation="False" OnClick="btnClear_Click"
                                Text="重置" /></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="3" style="width: 517px">
            </td>
        </tr>
    </table>
</asp:Content>

